import React, {Component} from 'react';
import {observable, computed} from 'mobx';

class TodoList {
    @observable todo = [];

    @computed get unfinishedTodoCount() {
        return this.todo.filter(todo => !todo.finished).length
    }
}